package com.example.personnel_oa.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.Source;
import com.example.comment_oa.pojos.Talentpool;
import com.example.personnel_oa.mapper.SourceMapper;
import com.example.personnel_oa.service.SourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【source】的数据库操作Service实现
* @createDate 2022-10-17 23:35:43
*/
@Service
public class SourceServiceImpl extends ServiceImpl<SourceMapper, Source>
implements SourceService {
    @Autowired
    SourceMapper sourceMapper;
    @Override
    public List<Source> selectlist() {
        QueryWrapper<Source> wrapper = new QueryWrapper<>();
        QueryWrapper<Source> source = wrapper.le("source_state", 0);
        List<Source> sources = sourceMapper.selectList(source);
        return sources;
    }
}
